<?php
//Подключаем файлы моделей
foreach ($config['models'] as $file_name) {
	require_once(ROOT.'framework/models/'.$file_name.'.php');
}

//Подключаем модели сборки
foreach ($config['items'] as $file_name=>$value) {
    require_once(ROOT.'builder/models/'.$file_name.'.php');
}

//Подключаем хелперы
foreach ($config['helpers'] as $file_name) {
	require_once(ROOT.'framework/helpers/'.$file_name.'.php');
}

//Подключаем компоненты
foreach ($config['components'] as $file_name) {
    require_once(ROOT.'framework/components/'.$file_name.'.php');
}

//Загрузка контроллеров
require_once('framework/controllers/base_controller.php');
require_once('framework/controllers/app_controller.php');
require_once('framework/controllers/adm_controller.php');
require_once('framework/controllers/service_controller.php');
require_once('application/controllers/ext_controller.php');
?>